#include <iostream>
using namespace std;

class B 
{
public:
    int a;
    int b;
    char* data;
    virtual void A();
    int c;
};
class B1 :public B 
{
public:
    virtual void x();
    int d;
};

int main()
{
    // cout << sizeof(B) << endl;
    int* p1 = new int;
    int* p2 = new int(8);
    int* p3 = new int[10];

    int* a1 = (int*)malloc(sizeof(int));
    cout << *p1 << endl;
    cout << *p2 << endl;
    cout << *p3 << endl;

    return 0;
}